import { Point2d } from 'point2d';

let x = 1;
let y = 2.0;
let p = new Point2d (x,y);

function foo (v) {
    return v.distance();
}

let d = foo(p);

